package com.base.library.bindadapter.viewPager

import androidx.databinding.BindingAdapter
import com.google.android.material.tabs.TabLayout

class TabLayoutExt {
    companion object {
        @JvmStatic
        @BindingAdapter(value = ["tabIndicatorColor"])
        fun setPagerCurrentPageObserver(
            view: TabLayout,
            color: Int
        ) {
            view.setSelectedTabIndicatorColor(color)
        }
    }
}